package com.study.crud.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.study.crud.model.job.Job;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

@Component
public interface JobMapper extends BaseMapper<Job> {
    @Select("select eid from job where jid=#{jid}")
    Integer findEidByJid(Integer jid);

    @Delete("delete from job where eid=#{eid}")
    void removeByEid(Integer eid);
}
